package rejaw.api.data
{
	/**This object contains information about a Rejaw user
	 * This object can be used to store information about any user, not just the authenticated user.
	 * 
	 * @author Bryan Bartow | bryanbartow@gmail.com | http://www.bryanbartow.com
	 * */
	public class RejawUser
	{
		public var userName     : String;
		public var fullName     : String;
		public var imageURL     : String;
		public var location     : String;
		public var blurb        : String;
		
		public var conversations : Array = new Array();
		public var followers     : Array = new Array();
		public var followees     : Array = new Array(); 
		
		public function RejawUser( user : Object = null )
		{
			if( user != null )
			{
				buildRejawUser( user );
			}
		}
		
		public function buildRejawUser( user : Object ) : void
		{
			userName = user.username;
			fullName = user.fullname;
			imageURL = user.image_url;
			location = user.location;
			blurb    = user.blurb;
		}
	}
}